add new line but not new bullet

I wrote this function to take the current "Object Text" value to add a bullet to the data.  However, I want to add an extra line character to the render results.  Anyone know how to do it?

Sample code below

 

void addBullet( Object o )
{
    string strOT = o."Object Text"
    o."Object Text" = richText( applyTextFormattingToParagraph( richText strOT, true, 0, 0 ) )

    Buffer buf = create
    buf += richText( o."Object Text") 
    buf += "\\pard\\par"



   o."Object Text" = richTextNoOle( buf )"\\line"
   delete( buf )

}

 


a8155058 - Thu Feb 09 16:15:41 EST 2017

Re: add new line but not new bullet
Mathias Mamsch - Tue Feb 14 04:41:15 EST 2017

Richtext transformations are usually pretty hard in DOORS to get right. For just adding a newline I would try to use richTextFragment to get the RTF without headers, then append the line. Maybe it helps, Regards, Mathias